home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PPrintDoc.cpp < prev    next >
C/C++ Source or Header  |  1996-09-04  |  1KB  |  50 lines

  1. /*
  2.  *--- PPrintDoc.cpp -------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PPrintDoc.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PPrintDoc.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PPrintDoc::PPrintDoc
  16.   (    short            nCopies,
  17.       PMBool            bCollate,
  18.     PMBool            bReverse,
  19.     PMBool            bProof,
  20.     const char *    sRange,
  21.     PMBool            bBlank,
  22.     short            cPages,
  23.     PMBool            bIndependence,
  24.     PMBool            bBook,
  25.     PMBool            bBookSpec,
  26.     short            bOrientation,
  27.     PMBool            bSpreads,
  28.     PMBool            bIgnNonPrint )
  29. {
  30.     PRequestBuf request(strlen(sRange) + 24);
  31.  
  32.     request << nCopies
  33.             << bCollate
  34.             << bReverse
  35.             << bProof
  36.             << sRange
  37.             << bBlank
  38.             << cPages
  39.             << bIndependence
  40.             << bBook
  41.             << bBookSpec
  42.             << bOrientation
  43.             << bSpreads
  44.             << bIgnNonPrint;
  45.             
  46.     PCommand command(pm_printdoc, request);
  47. }
  48.  
  49. // end of PPrintDoc.cpp
  50.